layui.use(['form', 'element', 'layer', 'jquery', 'carousel'], function () {
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        element = layui.element;
    $ = layui.jquery;
    var carousel = layui.carousel;
    carousel.render({
        elem: '#test10'
        , width: '100%'
        , height: '500px'
        , interval: 5000
    });

});